package com.yf.tz.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;
import java.util.List;

/**
 * 产品实体
 * 表名 mall_goods
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Wed Jul 08 15:36:34 CST 2020
 */
@Setter
@Getter
public class MallGoodsEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //ID
    private Long id;
        //产品名
    private String name;
        //库存
    private Integer stock;
        //原价
    private BigDecimal oldPrice;
        //现价
    private BigDecimal nowPrice;
        //IMG-缩略图
    private String minImg;
        //IMG-主图
    private String midImg;
        //IMG-详情页
    private String bigImg;
        //ENUM-是否推荐:"NO-否","YES-是"
    private Integer top;
        //必须积分
    private BigDecimal point;
        //满免数量
    private Integer logFreeNum;
        //未满邮费
    private BigDecimal logFee;
        //ENUM-是否上架:"NO-下架","YES-上架"
    private Integer shelf;
        //排序,越大越靠前
    private Integer idx;
    //重量
    private BigDecimal weight;
        //描述
    private String info;
    //单位
    private String unit;

    //类型
    private List<Long> typeIds;

    //规格
    private List<MallSkuEntity> skuList;

    //规格组件
    private List<MallSkuItemEntity> skuItemList;

    public MallGoodsEntity(){

    }

}
